package vidas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.util.TreeMap;


public abstract class  Pared extends Figura{
  int k,m;
    
    public Pared(Integer x0, Integer y0, Integer w0, Integer h0, Color c, 
            Lienzo l){
        super(x0, y0, w0, h0, c, l); 
    }
  
    @Override
    public void dibujate(Graphics g) {
        g.setColor(color);
        k=x;m=y;
        g.fillRect(x, y, w, h);
    }

   
    public void colisionoCon(Pared c) {         
      }

  

    public void rebota() {
    ira(k,m);    
    }

    @Override
    public void colisionoCon(Movil c) {         
    }    
    
    @Override
    public void colisionoCon(Figura c) {
        c.colisionoCon(this);    
    }
    
}
